<template>
  <div class="container">
    <div class="top">选择整形部位</div>
    <div class="content">
      <ul class="list">
        <li
          class="list-item"
          v-for="(item, index) in list_arr"
          :key="index"
          @click="select(item)"
        >{{item.name}}</li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list_arr: [
        {
          name: "鼻部整形",
          img: "https://h5.yuepinyuemei.com/mp_images/zhengxingewm/bbzx.png"
        },
        {
          name: "颌部整形",
          img: "https://h5.yuepinyuemei.com/mp_images/zhengxingewm/ebzx.png"
        },
        {
          name: "乳房整形",
          img: "https://h5.yuepinyuemei.com/mp_images/zhengxingewm/rfzx.png"
        },
        {
          name: "吸脂整形",
          img: "https://h5.yuepinyuemei.com/mp_images/zhengxingewm/xzzx.png"
        },
        {
          name: "眼部整形",
          img: "https://h5.yuepinyuemei.com/mp_images/zhengxingewm/ybzx.png"
        }
      ]
    };
  },
  methods: {
    select(item) {
      localStorage.setItem("url", item.img);
      this.$router.push({ path: "/erweima" });
    }
  }
};
</script>

<style lang="less" scoped>
.container {
  height: 100%;
  background: rgba(204, 204, 204, 0.2018);
  display: flex;
  flex-direction: column;
  .top {
    height: 56px;
    width: 100%;
    line-height: 56px;
    padding-left: 15px;
    font-size: 14px;
    font-family: "PingFangSC-Medium";
    color: rgba(246, 70, 101, 1);
    background-color: #fff;
    bottom: 10px;
    font-weight: bold;
  }
  .content {
    background-color: #fff;
    flex: 1;
    margin-top: 10px;
    .list {
      margin: 48px auto;
      width: 205px;
      .list-item {
        width: 205px;
        height: 62px;
        line-height: 62px;
        text-align: center;
        border-radius: 31px;
        border: 1px solid rgba(151, 151, 151, 1);
        margin-bottom: 10px;
        color: #cccccc;
      }
    }
  }
}
</style>

